package com.hualian.coupon.exception;

import lombok.Getter;

/**
 * @author Lxd
 * @Description TODO 业务异常类
 * @date 2020/10/22 5:44
 * @Version 1.0
 */
@Getter
public class BusinessException extends RuntimeException{

    private int code;
    private String msg;

    public BusinessException() {
        this(1001, "接口错误");
    }

    public BusinessException(String msg) {
        this(1001, msg);
    }

    public BusinessException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
